<?php
include("inc/global.inc");
$zl_rs=mysql_query("select * from ziliao where id='".$_GET['id']."'");
$zz_row=mysql_fetch_array($zl_rs);
?>
<?php 
 $l_rs=mysql_query("select * from zd_class where id='$zz_row[z_bigid]'");
 $l_row=mysql_fetch_array($l_rs);
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><?=$zz_row[z_title]?>，<?=$zz_row[z_smname]?>，<?=$zz_row[z_bigname]?>-三帝资料汇集海量资讯、商务资料、商务资料信息。</title>
<meta name="description" content="<?=$zz_row[z_title]?>，<?=$zz_row[z_smname]?>，<?=$zz_row[z_bigname]?>-三帝资料国内领先的网上商务资料库中心提供最新的商务资料、企业资料库、经典资讯。——为您打造专业的在线学智社区" />
<meta name="keywords" content="<?=$zz_row[z_title]?>，<?=$zz_row[z_smname]?>，<?=$zz_row[z_bigname]?>,三帝资料，三帝资料库，商务资料，商务百科，企业资料" />
<link href="/css/body.css" rel="stylesheet" type="text/css" />
<link href="/css/head.css" rel="stylesheet" type="text/css" />
<link href="/css/foot.css" rel="stylesheet" type="text/css" />
<link href="/css/content.css" rel="stylesheet" type="text/css" />
<script language="javascript" src="/js/dh.js" charset="gb2312"></script>
</head>
<body>
<?php
include("inc/head_top.php");
?>
<div id="mian" class="topside6">
<div class="title1">当前位置: <a href="/">三帝资料</a> >> <a href="/ziliao-type/<?=$zz_row[z_bigid]?>.html"><?=$zz_row[z_bigname]?></a> >> <a href="/ziliao-list/<?=$zz_row[z_smid]?>/1.html"><?=$zz_row[z_smname]?></a> >> <?=$zz_row[z_title]?></div>
<div class="onl"></div>
</div>

<div id="mian" class="topside6 side">
<script type="text/javascript">/*960*90，创建于2011-3-9*/ var cpro_id = 'u403357';</script><script src="http://cpro.baidu.com/cpro/ui/c.js" type="text/javascript"></script>
<div class="onl"></div>
</div>

<div id="mian" class="topside6">
<div class="rightbox downside6">
  <div class="rightmain">
    <div class="title size14 b"><strong>热门资料下载</strong> </div>
    <div class="RtInfo4">
      <div class="div_3">
        <ul>
         <?php
		    $r_rs=mysql_query("select id,z_title from ziliao where z_sh=1  order by id desc limit 10");
			while($r_row=mysql_fetch_array($r_rs)){
		  ?>
          <li><a href="/ziliao-info/<?=$r_row[id]?>.html" class="link_1"><?=mb_substr($r_row[z_title],0,17,'utf-8')?></a></li>
          <?php }?>
        </ul>
      </div>
    </div>
    <div class="onl"></div>
  </div>
  
  <div class="rightmain topside6">
    <div class="title size14 b">推荐资料下载</div>
    <div class="RtInfo4">
      <div class="div_3">
        <ul>
          <?php
		    $r_rs=mysql_query("select id,z_title from ziliao where z_sh=1  order by id asc limit 10");
			while($r_row=mysql_fetch_array($r_rs)){
		  ?>
          <li><a href="/ziliao-info/<?=$r_row[id]?>.html" class="link_1"><?=mb_substr($r_row[z_title],0,17,'utf-8')?></a></li>
          <?php }?>
        </ul>
      </div>
    </div>
    <div class="onl"></div>
  </div>
  </div>
<div class="leftmain content sideyellow1 size14">
  <div class="biaoti">
<div class="title3"><?=$zz_row[z_title]?></div>
<table width="700" height="238" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td width="101" align="right" class="td">资料类型：</td>
    <td width="317" align="left" class="td"><?PHP $path_parts=pathinfo($zz_row[z_dizhi]);echo $path_parts['extension'];?></td>
    <td width="282" rowspan="6" align="center" style="padding:5px;"><script type="text/javascript"><!--
google_ad_client = "pub-2924453545159453";
/* 250x250, 创建于 11-3-25 */
google_ad_slot = "4434545266";
google_ad_width = 250;
google_ad_height = 250;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></td>
  </tr>
  <tr>
    <td align="right" class="td">次料等级：</td>
    <td align="left" class="td"><img src="/images/star.gif" width="16" height="16" /><img src="/images/star.gif" width="16" height="16" /><img src="/images/star.gif" width="16" height="16" /><img src="/images/star.gif" width="16" height="16" /><img src="/images/star.gif" width="16" height="16" /></td>
    </tr>
  <tr>
    <td align="right" class="td">所需要三帝币：</td>
    <td align="left" class="td">2/次</td>
    </tr>
  <tr>
    <td align="right" class="td">下载次数：</td>
    <td align="left" class="td"><?=$zz_row[z_hit]?>次</td>
    </tr>
  <tr>
    <td align="right" class="td">&nbsp;</td>
    <td align="left" class="td">&nbsp;</td>
    </tr>
  <tr>
    <td colspan="2" align="left"><table width="100%" border="0" align="left" cellpadding="5" cellspacing="0" class="table">
      <tr>
        <td align="center">卡巴检测：安全 <img src="/images/ok.gif" alt="安全" width="14" height="11" /></td>
        <td width="181" align="center">瑞星检测：安全 <img src="/images/ok.gif" alt="安全" width="14" height="11" /></td>
      </tr>
      <tr>
        <td align="center">金山检测：安全 <img src="/images/ok.gif" alt="安全" width="14" height="11" /></td>
        <td align="center">江民检测：安全 <img src="/images/ok.gif" alt="安全" width="14" height="11" /></td>
      </tr>
    </table></td>
    </tr>
</table>
  </div>
  </div>
<div class="leftmain content sideyellow1 topside6">
  <div class="biaoti">
<div class="title3"><?=$zz_row[z_title]?>简介</div>
<table width="700" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td colspan="3" align="left" valign="top" class="td"><?=unhtml($zz_row[z_content])?></td>
    </tr>
</table>
<?php if($_COOKIE[user_id]){
      $mrs=mysql_query("select * from member where id='".$_COOKIE['user_id']."'");
	  $mrow=mysql_fetch_array($mrs);
?>
<table width="100%" height="52" border="0" align="center" cellpadding="0" cellspacing="5" bgcolor="#FCFCFC">
     <tr>
       <td width="138" align="right" bgcolor="#FFFFFF">用户名：</td>
       <td width="547" bgcolor="#FFFFFF"><?=$mrow[m_user]?>&nbsp;&nbsp;[<a href="/exit.php">退出</a>]</td>
     </tr>
     <tr>
       <td align="right" bgcolor="#FFFFFF">会员等级：</td>
       <td bgcolor="#FFFFFF"><?php if($mrow[m_type]==3){?>普通会员，<a href="http://www.sandib2b.cn/member/sj.php" target="_blank">升级钻石会员</a><?php }else{?><img src="http://www.sandib2b.cn/images/member.gif" border="0" align="absmiddle" />，到期时间：<?=date("Y-m-d",strtotime($mrow[m_endtime]))?>，<a href="http://www.sandib2b.cn/member/sf.php" target="_blank">续费</a><?php }?></td>
     </tr>
     <tr>
       <td align="right" bgcolor="#FFFFFF">三帝币：</td>
       <td bgcolor="#FFFFFF"><?=$mrow[m_jifen]?>，<a href="http://www.sandib2b.cn/member/pay.php" target="_blank">充值</a></td>
     </tr>
     <tr>
       <td bgcolor="#FFFFFF">&nbsp;</td>
       <td bgcolor="#FFFFFF"><form method="post" action="/down.php" target="_blank"><input type="hidden" name="id" id="id" value="<?=$zz_row[id]?>" /><input type="hidden" name="xiazai" value="ok" /><input type="image" src="/images/xiazai.jpg" /></form></td>
     </tr>
 </table>
 <?php }else{?>
<script language="javascript">
function $(id){
   return document.getElementById(id);
}
function checklogin(){
   if($("logUserName").value==""){
   alert("用户名不能为空");
   $("logUserName").focus();
   return false;
   }
   if($("logPassword").value==""){
   alert("密码不能为空");
   $("logPassword").focus();
   return false;
   }
   if($("c_code").value==""){
   alert("验证码不能为空");
   $("c_code").focus();
   return false;
   }
}
function test(img){
    var src=img.getAttribute("src");
    src=src+"?new="+Math.random(0,10);
    img.setAttribute("src",src);
}
function prepare(){
    var nav=document.getElementById("test");
    var name=nav.getAttribute("name");
    var str="test";
    if(name==str){
        nav.onclick=function(){
            var img=document.getElementById("img");
            test(img);
            return false;
        }
    }
}
window.onload=prepare;
</script>
 <table width="525" height="52" border="0" align="center" cellpadding="0" cellspacing="5">
   <form id="form1" name="form1" method="post" action="/login.php" onsubmit="return checklogin()">
     <tr>
       <td colspan="2"><label><img src="/images/logoicon.gif" width="122" height="32" /></label></td>
       </tr>
     <tr>
       <td width="91" align="right"><label>用户名：</label></td>
       <td width="419"><input name="logUserName" type="text" id="logUserName" size="20" maxlength="40"/></td>
    </tr>
    <tr>
       <td align="right">密码：</td>
       <td><input name="logPassword" type="password" id="logPassword" size="20" maxlength="40" /></td>
    </tr>
    <tr>
       <td align="right">验证吗：</td>
       <td><input name="c_code" type="text" id="c_code" size="8" maxlength="6" />
         &nbsp;<img src="/inc/chk_num.php" name="img" width="80" height="25" align="absmiddle" id="img"/>&nbsp;<a href="#" name="test" id="test">刷新验证码</a></td>
       </tr>
     <tr>
       <td>&nbsp;</td>
       <td><input type="submit" name="Submit" value=" 登 陆 " />&nbsp;&nbsp;还不是会员请<a href="http://www.sandib2b.cn/join/" target="_blank">注册</a></td>
     </tr>
</form>
   </table>
<?php }?>
  </div>
  </div>
  <div class="leftmain  sideyellow1 topside6">
<script type="text/javascript"><!--
google_ad_client = "pub-2924453545159453";
/* 468x60, 创建于 11-3-25 */
google_ad_slot = "5627458483";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
  </div>
  <div class="onl"></div>
</div>

<div id="mian" class="topside6 side">
<script type="text/javascript">/*960*90，创建于2011-3-9*/ var cpro_id = 'u403357';</script><script src="http://cpro.baidu.com/cpro/ui/c.js" type="text/javascript"></script>
<div class="onl"></div>
</div>

<?php
include("inc/foot.php");
?>
</BODY>
</HTML>


<script type="text/javascript">/*120*270，创建于2011-3-23*/ var cpro_id = 'u419785';</script><script src="http://cpro.baidu.com/cpro/ui/f.js" type="text/javascript"></script>

<div id="lovexin12" style='left:451px;POSITION:absolute;TOP:200px;border:1px solid #EFEFEF;'>
<table width="250" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td align="right" bgcolor="#FFFFCA" height="22" style="padding-right:20px;"><a href="javascript:hide()"><b>关闭</b></a></td>
  </tr>
  <tr>
    <td><script type="text/javascript">/*250*250，创建于2011-3-25*/ var cpro_id = 'u422549';</script><script src="http://cpro.baidu.com/cpro/ui/c.js" type="text/javascript"></script></td>
  </tr>
</table>
</div>
<script language="JavaScript" type="text/javascript">
lastScrollY=0;
function heartBeat(){ 
var diffY;
if (document.documentElement && document.documentElement.scrollTop)
diffY = document.documentElement.scrollTop;
else if (document.body)
diffY = document.body.scrollTop
else
{/*Netscape stuff*/}
percent=.1*(diffY-lastScrollY); 
if(percent>0)percent=Math.ceil(percent); 
else percent=Math.floor(percent); 
document.getElementById("lovexin12").style.top=parseInt(document.getElementById("lovexin12").style.top)+percent+"px";
lastScrollY=lastScrollY+percent; 
}
function hide()     
{      
lovexin12.style.display="none";   
} 
window.setInterval("heartBeat()",1);
</script>
